package com.jiangxfei.mymvp.di.module;

import com.jiangxfei.mymvp.config.APIService;
import com.jiangxfei.mymvp.http.MainRetrofit;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class RetrofitServiceModule {

    @Singleton
    @Provides
    public APIService getApiService(MainRetrofit retrofit) {
       return  retrofit.getRetrofit().create(APIService.class);
    }
}
